package com.ckd.flyingtrip.fragment;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import androidx.fragment.app.Fragment;

import com.ckd.flyingtrip.R;
import com.ckd.flyingtrip.dialog.PayWayDialog;

public class MyWallet_Qianbao extends Fragment {
    private PayWayDialog.Builder pb;
    private TextView btn_chongzhi,txt_money;
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        View v=inflater.inflate(R.layout.fragment_wallet, container,false);
        btn_chongzhi =  v.findViewById(R.id.btn_chongzhi);
        txt_money =  v.findViewById(R.id.txt_money);
        btn_chongzhi.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                pb = new PayWayDialog.Builder(getContext(),
                        new PayWayDialog.Builder.PriorityListener() {
                            @Override
                            public void refreshPriorityUI(String f) {
                                pb.create().dismiss();
                            }
                        });
                pb.create().show();
            }
        });
        return v;
    }


}
